<template></template>
<script setup lang="ts">
import { onLoad } from "@dcloudio/uni-app";
// import { getUrlParams, objToUrlParams } from "./utils/utils";

// 获取url传递过来的参数，格式化成对象之后，跳转 service
onLoad(() => {
  const params = getUrlParams();
  console.log("params", params);

  uni.reLaunch({
    url: `./service?${objToUrlParams(params)}`,
  });
});
</script>
